package cur.nature.domain.service;

import cur.nature.domain.dao.Domain_DictDao;
import cur.nature.framework.mvc.crud.CrudService;
import cur.nature.tinyorm.core.bean.PageBean;
import cur.nature.domain.model.vo.Domain_DictVO;
import cur.nature.domain.model.po.Domain_DictPO;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

/**
 * 通用字典表 Service
 * 作者：Auto Generator By wujian
 * 生成日期：2023-07-09 16:05:31
 */
@Service
@ConditionalOnProperty( value = {"cur.component.domain.enable"})
public class Domain_DictService extends CrudService<Domain_DictPO, Domain_DictVO, Domain_DictDao> {
    public Domain_DictService(Domain_DictDao baseDao) {
        super(baseDao, Domain_DictPO.class, Domain_DictVO.class);
    }

    public PageBean<Domain_DictVO> list(Domain_DictVO.list_Param param) throws Exception {
        PageBean<Domain_DictVO> list = getDao().list(param);
        return list;
    }

}

